package Client;

/**
 * GameConsole include game, info, trun
 * @author Termchai 5510546042, Eknarin 5510546239
 *
 */
public class GameConsole {
	private Turn turn,preTurn;
	private Game game;
	private Info info;
	
	
	public GameConsole(Game game, String p1, String p2)
	{
		this.game=game;
		setTurn(Turn.P1);
		info = new Info(p1, p2);
	}
	
	public Info getInfo()
	{
		return info;
	}
	
	public Game getGame()
	{
		return game;
	}
	
	public void setTurn(Turn t)
	{
		turn=t;
	}
	
	public Turn getTurn()
	{
		return turn;
	}
	
	public void setPreTurn(Turn t)
	{
		preTurn=t;
	}
	
	public  Turn getPreTurn()
	{
		return preTurn;
	}
	
	/**
	 * plus 1 score to player (index x)
	 * @param x index player
	 */
	public void plusScore(int x)
	{
		info.plusScore(x);
	}
	
	/**
	 * 
	 * @return score (player index x)
	 */
	public int[] getScore()
	{
		return info.getScore();
	}
	
	
}
